﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dycox.Workflows
{
    [Serializable]
    public class WorkflowException : Exception
    {
        public WorkflowException() { }
        public WorkflowException(string message) : base(message) { }
        public WorkflowException(string message, Exception inner) : base(message, inner) { }
        protected WorkflowException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context) { }
    }

    [Serializable]
    public class WorkflowExecutionException : WorkflowException
    {
        public WorkflowExecutionException() { }
        public WorkflowExecutionException(string message) : base(message) { }
        public WorkflowExecutionException(string message, Exception inner) : base(message, inner) { }
        protected WorkflowExecutionException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context) { }
    }
}
